<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>订单管理系统</title>
    <link rel="stylesheet" type="text/css" href="../../static/admin/css/reset.css">
    <link rel="stylesheet" type="text/css" href="../../static/admin/css/main.css">
    <script type="text/javascript" src="../../static/admin/js/jquery-1.12.4.min.js"></script>
</head>
<body>
<div class="header" style="background: rgb(17 52 104 / 50%);">
      <h1 style="color: white;font-size: 25px;margin-top: 12px;margin-left: 50px;float:left">订&nbsp单&nbsp管&nbsp理&nbsp系&nbsp统 </h1>

<!--    <img src="../../static/admin/images/logo.png" alt="">-->
        <a href="/admin/logout" class="logout fr" style="float:right">退 出</a>

</div>

<div class="side_bar">

    <div class="menu_con" style="margin-top: 0px;">
        {% if user.is_admin!=2 %}
        <div class="first_menu1"><a href="/admin/user_count" target="main_frame">首页</a></div>
        {% endif %}
        <div class="first_menu"><a href="#" >接单管理</a></div>
        <ul class="sub_menu">
            <li><a href="/admin/news_review" class="icon031" target="main_frame">所有订单</a></li>
            <li><a href="/admin/add_new" class="icon032" target="main_frame">新增订单</a></li>
            <li><a href="/admin/dsp" class="icon031" target="main_frame">待上评</a></li>
            {% if user.is_admin!=2 %}
            <li><a href="/admin/djz" class="icon034" target="main_frame">待结账</a></li>
            <li><a href="/admin/yjz" class="icon031" target="main_frame">已结账</a></li>
            <li><a href="/admin/user_count" class="icon034" target="main_frame">接单统计图</a></li>
            {% endif %}
        </ul>

        {% if user.is_admin!=2%}
        <div class="first_menu active"><a href="#" ">下单管理</a></div>
        <ul class="sub_menu show">
            <li class="current"><a href="/admin/add_order" class="icon021" target="main_frame">订单录入</a></li>
        </ul>
        {% endif %}

        {% if user.is_admin==2 %}
         <div class="first_menu active"><a href="#" >财务管理</a></div>
        <ul class="sub_menu show">

            <li class="current"><a href="/admin/fws_js" class="icon021" target="main_frame">服务商结算</a></li>
            </ul>
        {% endif %}

        {% if user.is_admin==1 %}
        <div class="first_menu active"><a href="#" >财务管理</a></div>
        <ul class="sub_menu show">

            <li class="current"><a href="/admin/fws_js" class="icon021" target="main_frame">服务商结算</a></li>
            </ul>

<!--        <div class="first_menu active"><a href="#" >客户数据管理</a></div>-->
<!--        <ul class="sub_menu show">-->

<!--            <li class="current"><a href="/admin/user_list" class="icon021" target="main_frame">客户订单</a></li>-->
<!--            <li class="current"><a href="/admin/user_list" class="icon021" target="main_frame">客户信息录入</a></li>-->
<!--        </ul>-->




        <div class="first_menu active"><a href="#" >系统管理</a></div>
        <ul class="sub_menu show">

            <li class="current"><a href="/admin/reginst" class="icon021" target="main_frame">用户添加</a></li>
{#            <li class="current"><a href="/admin/user_list" class="icon031" target="main_frame">权限设置</a></li>#}
            <li class="current"><a href="/admin/password_reset" class="icon032" target="main_frame">密码修改</a></li>

        </ul>
        {% endif %}
        {% if user.is_admin!=1%}
        <div class="first_menu active"><a href="#" >系统管理</a></div>
        <ul class="sub_menu show">
            <li class="current"><a href="/admin/password_reset" class="icon032" target="main_frame">密码修改</a></li>
        </ul>
        {% endif %}

    </div>
</div>

<div class="main_body" id="main_body">
    {% if user.is_admin!=2 %}
    <iframe src="/admin/user_count" frameborder="0" id="main_frame" name="main_frame"
            frameborder="0" scrolling="auto"></iframe>
    {% elif user.is_admin==2 %}
    <iframe src="/admin/news_review" frameborder="0" id="main_frame" name="main_frame"
            frameborder="0" scrolling="auto"></iframe>
    {% endif %}
</div>

<script>
    $(function () {
        $('.first_menu').click(function () {
            $(this).addClass('active').siblings('.first_menu').removeClass('active');
            $(this).next().slideDown().siblings('.sub_menu').slideUp();
        })

        var frame_w = $('#main_body').outerWidth();
        var frame_h = $('#main_body').outerHeight();
        $('#main_frame').css({'width': frame_w, 'height': frame_h});
    })
</script>

</body>
</html>